From 182c909d5572f8b68f97c4bcdfcd6af2fda94de1 Mon Sep 17 00:00:00 2001 From: Bernd Zeimetz Date: Wed, 5 May 2010 17:38:07 +0200 Subject: [PATCH] Fix various comparison errors due to limited pointer types. --- .../limited_pointer_type_comparison_fixes | 32 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 33 insertions(+) create mode 100644 debian/patches/limited_pointer_type_comparison_fixes diff --git a/debian/patches/limited_pointer_type_comparison_fixes b/debian/patches/limited_pointer_type_comparison_fixes new file mode 100644 index 000000000..c598f0662 --- /dev/null +++ b/debian/patches/limited_pointer_type_comparison_fixes @@ -0,0 +1,32 @@ +--- a/osm.c ++++ b/osm.c +@@ -537,7 +537,7 @@ osm_node_tag(const char *args, const cha + const char **avp = &attrv[0]; + const char *key = "", *value = ""; + char *str; +- char ikey; ++ signed char ikey; + + while (*avp) { + if (strcmp(avp[0], "k") == 0) +--- a/cetus.c ++++ b/cetus.c +@@ -121,12 +121,12 @@ typedef struct cetus_track_head_s + + typedef struct cetus_track_point_s + { +- char hour; +- char min; +- char sec; +- char dsec; +- char sat; +- char hdop; ++ signed char hour; ++ signed char min; ++ signed char sec; ++ signed char dsec; ++ signed char sat; ++ signed char hdop; + pdb_32 latitude; + pdb_32 longitude; + short speed; diff --git a/debian/patches/series b/debian/patches/series index 2f264db69..3c3cf53ee 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ +limited_pointer_type_comparison_fixes htmldoc-location gpsbabelfe-name -- 2.30.2